package com.itbaizhan.shopping_common.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itbaizhan.shopping_common.pojo.Goods;

/**
 * @program: shopping
 * @ClassName GoodsService
 * @description: 商品服务
 * @author: jing
 * @create: 2025-06-25 22:22
 **/

public interface GoodsService {
    void add(Goods goods);

    void update(Goods goods);

    //根据id查询商品详情
    Goods findById(Long id);

    //上架/下架商品
    void putAway(Long id,Boolean isMarketable);
    //分页查询商品
    Page<Goods> search(Goods goods, int page, int size);
}
